//
//  OCRDetector.h
//  mtcnn_framework
//
//  Created by tom on 2019/5/28.
//  Copyright © 2019 TZ. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BoundingBox.h"

NS_ASSUME_NONNULL_BEGIN

@protocol OCRDectionProtocol <NSObject>

- (void)onFrameDetectedWithinfo:(BoundingBox*)info originalImage:(UIImage*)original trimmedImage:(UIImage*)trimmed;

@end

@interface OCRDetector : NSObject

@property (nonatomic, weak) id<OCRDectionProtocol> delegate;

- (void)ocrDetectWithOriginalImage:(UIImage*)image trimmedImage:(UIImage*)trimmedImage;

- (void)closeSeccion;

- (UIImage *)bestImage;

@end

NS_ASSUME_NONNULL_END
